<template>
    <el-menu :default-active="$route.path" router class="el-menu-demo" mode="horizontal" background-color="#545c64"
        text-color="#fff" active-text-color="#ffd04b" @select="handleSelect">
        <el-menu-item index="/">
            主页
        </el-menu-item>

        <!-- <el-menu-item index="/we">
            lsc&lyy
        </el-menu-item> -->

        <!-- <el-sub-menu index="2">
            <template #title>两级标题</template>
            <el-menu-item index="2-1">item one</el-menu-item>
            <el-menu-item index="2-2">item two</el-menu-item>
            <el-menu-item index="2-3">item three</el-menu-item>
            <el-sub-menu index="2-4">
                <template #title>item four</template>
                <el-menu-item index="2-4-1">item one</el-menu-item>
                <el-menu-item index="2-4-2">item two</el-menu-item>
                <el-menu-item index="2-4-3">item three</el-menu-item>
            </el-sub-menu>
        </el-sub-menu> -->

        <!-- <el-menu-item index="3" disabled>不可点击标题</el-menu-item> -->
        
        <el-menu-item index="/download">
            下载站
        </el-menu-item>
    </el-menu>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const activeIndex = ref('/download')
const handleSelect = (key: string, keyPath: string[]) => {
    // console.log(key, keyPath)
}
</script>

<style></style>